

_event_ = 'org.bukkit.event.player.PlayerLoginEvent-test,test()'
#_useSql_ = true
# if useSql
# _sqlType_ = 2 # 1 MYSQL , 2 SQLite
# if mysql
# _host_ = 'localhost'
# _port_ = 3306
# _database_ = 'test'
# _table_ = 'xxx'
# _username_ = 'root'
# _password_ = 'root'
# if sqlite
#_filepath_ = sys.path[0] + "/test.db"
#_table_ = 'test'

from org.bukkit.event.player import PlayerLoginEvent

def onLoad():
    if (!sql.hasTable):
        sql.createTable

def test():
    print event.getEventName()
    event.disallow(PlayerLoginEvent.Result.KICK_OTHER, "fuck xxx")